using System;
using System.Collections.Generic;
using System.Text;

[Serializable]
public class RssFeedConfig
{
    private List<RssConfigItem> _configItems;
    public List<RssConfigItem> ConfigItems
    {
        get
        {
            return _configItems;
        }
        set
        {
            _configItems = value;
        }
    }

    private int _newItems;
    public int NewItems
    {
        get
        {
            return _newItems;
        }
        set
        {
            _newItems = value;
        }
    }

    public RssFeedConfig()
    {
        _configItems = new List<RssConfigItem>();
    }

    public void AddConfigItem(RssConfigItem addme)
    {
        if (!_configItems.Contains(addme))
            _configItems.Add(addme);
    }

    public void RemoveConfigItem(RssConfigItem removeme)
    {
        if (_configItems.Contains(removeme))
            _configItems.Remove(removeme);
    }
}
